package com.ytjj.qmyx.admin.controller;

import com.ytjj.common.api.CommonResult;
import com.ytjj.qmyx.admin.model.request.DataAnalyseRequest;
import com.ytjj.qmyx.admin.service.DataAnalyseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * @version 1.0
 *
 */

@RestController
@RequestMapping("/dataAnalyse")
public class DataAnalyseController {

    @Autowired
    private DataAnalyseService dataAnalyseService;

    @PostMapping("/queryDataAnalyseByChannel")
    public CommonResult queryDataAnalyseByChannel(@RequestBody DataAnalyseRequest dataAnalyseRequest){
        return CommonResult.success(dataAnalyseService.queryDataAnalyseByChannel(dataAnalyseRequest));
    }
}
